package cn.acup.boot.base.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.acup.boot.base.dao.CityDao;
import cn.acup.boot.base.model.City;
import cn.acup.boot.base.service.CityService;

/**
 * @author alan.zhao
 */
@Service
public class CityServiceImpl implements CityService {

    @Autowired
    private CityDao cityDao;
    
    @Override
    public List<City> getAll(City city) {
        return cityDao.getCity();
    }
    
    @Override
    public City getById(Integer id) {
        return cityDao.getCity().get(0);
    }
    
    @Override
    public void deleteById(Integer id) {
    }
    
    @Override
    public void save(City country) {
    }
}
